#!/bin/bash

SYS_ARCH='x64'

get_arch () {
    ARCH_NAME=`uname -m | tr A-Z a-z`
    case $ARCH_NAME in
        arm)
            SYS_ARCH='arm64'
            ;;
        arm64)
            SYS_ARCH='arm64'
            ;;
        aarch64)
            SYS_ARCH='arm64'
            ;;
        'x86_64')
            SYS_ARCH='x64'
            ;;
        ppc64)
            SYS_ARCH='ppc64le'
            ;;
        ppc64le)
            SYS_ARCH='ppc64le'
            ;;
    esac
}

get_arch

